package com.hmall.item.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmall.item.pojo.Item;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ItemMapper extends BaseMapper<Item> {
    /**
     * 过滤项聚合功能
     * @param
     * @return
     */
    @Select("select distinct category from tb_item")
    List<String> itemByCondition();


    @Select("select distinct brand from tb_item")
    List<String> itemByCondition2();


}
